# @Time : 2020/7/18 14:33
# @Author : Fioman 
# @Phone : 13149920693
import cv2 as cv
import numpy as np


# 测试一下Opencv中蓝色的HSV模式的值.
imgBlue = np.zeros((1,1,3),dtype=np.uint8)
imgBlue[0,0,0] = 255
blue = imgBlue
blueHSV = cv.cvtColor(blue,cv.COLOR_BGR2HSV)
print("blue = \n",blue)
print("blueHSV = \n",blueHSV)

imgGreen = np.zeros((1,1,3),dtype=np.uint8)
imgGreen[0,0,1] = 255
green = imgGreen
greenHsv = cv.cvtColor(green,cv.COLOR_BGR2HSV)
print("green = \n",green)
print("greenHsv = \n",greenHsv)


imgRed = np.zeros((1,1,3),dtype=np.uint8)
imgRed[0,0,1] = 255
red = imgRed
redHsv = cv.cvtColor(red,cv.COLOR_BGR2HSV)
print("red = \n",red)
print("redHsv = \n",redHsv)